﻿using System.Net;
using CommunityToolkit.Mvvm.ComponentModel;
using Serilog;
using ZDriver;

namespace Launch.ViewModel;

public partial class UdpSettingVm : ObservableObject
{
    // 当前连接状态
    [ObservableProperty] private string _connectState = "未连接";

    // 自身IP
    [ObservableProperty] private string _selfIp = "Any";

    // 自身Port
    [ObservableProperty] private int _selfPort = 9966;

    // 设备IP
    // [NotifyPropertyChangedFor(nameof(DevIpPort))] [ObservableProperty]
    [ObservableProperty] private string _devIp = "192.168.10.244";

    // 设备Port
    [ObservableProperty] private int _devPort = 10000;

    // 已接收数据
    [ObservableProperty] private string _receivedData = "";

    public UdpSettingVm()
    {
    }
}